<?php
require_once(ROOT_ADMIN_MODELS.DS.'Models_Base.php');
class Model_Video extends Models_Base{

 	public function __construct(){
    	parent::__construct();
    	$this->_key="id";
    	$this->_table="video";
    }
    public function getTopVideo()
    {
    	$sql="
    		SELECT 
    			* 
    		FROM
    			video
    		ORDER BY id ASC 
    			limit 0,5     			
    	";
    	$result=$this->_db->fetchAll($sql);
    	return $result;
    }
	  
}